package com.wing.cabinet.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wing.cabinet.model.entity.StorageInventoryInoutDetail;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.wing.cabinet.model.entity.StorageInventoryInout;
import java.time.LocalDateTime;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 暂存柜存刀/取刀;存/取维修/回收刀Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class StorageInventoryInoutForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 存刀任务编号
     */
    private String code;

    /**
     * no
     */
    private Integer no;

    /**
     * day
     */
    private Integer day;

    /**
     * 操作类型
     */
    private StorageInventoryInout.OperationType operationType;

    /**
     * 业务类型
     */
    private StorageInventoryInout.BusinessType businessType;

    /**
     * 状态
     */
    private StorageInventoryInout.Status status;

    /**
    * 盘验时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;

    /**
     * 盘验人id
     */
    private Long checkUserId;

    /**
     * 盘验人
     */
    private String checkUserName;

    /**
    * 通知时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime notifyTime;

    /**
     * 通知人
     */
    private Long notifyUserId;

    /**
     * 通知人
     */
    private String notifyUserName;

    /**
     * 回收人id
     */
    private Long takeUserId;

    /**
     * 回收人
     */
    private String takeUserName;

    /**
    * 回收时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime takeTime;


    public interface Add{}

    public interface Update{}

    /**
     * 业务类型
     */
    private StorageInventoryInout.BusinessTypeChecked businessTypeChecked;


    /**
     * 签收人id
     */
    private Long signUserId;

    /**
     * 签收人
     */
    private String signUserName;

    /**
     * 签收时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signTime;

    private Long checkedResultId;

    /**
     * 供应商id
     */
    private Long supplierId;

    /**
     * 供应商名称
     */
    private String supplierName;


    /**
     * 设备编号
     */
    private String deviceCode;

    private Boolean isCheck;

    private List<StorageInventoryInoutDetailForm> detailList;

    private StorageInventoryInout.BusinessDetailType businessDetailType;

    private StorageInventoryInout.BusinessTypePre businessTypePre;

    private Long useInventoryInoutId;

    private Long checkInventoryInoutId;

    private Long storageInventoryOutId;

    private Boolean flag;

    private Long categoryId;

    private Long workOrderId;


    private Long departmentId;

    private String departmentName;

    private Boolean skuFlag;

    private Boolean isCorrect;

    private Boolean businessTypeCorrect;

    private Boolean skuCorrect;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    private String remark;

    private BigDecimal total;

    private Long processId;

    private String roleName;
    private String costCenter;

    /**
     * 主柜编号
     */
    private String mainCabCode;
}
